package com.kingwang.training.designpattern.principles.ocp.bo;

import lombok.Data;

/**
 * 长方形
 */
@Data
public class Rectangle implements Shape {
    private Double width;

    private Double height;

    @Override
    public Double calculateArea() {
        return this.width * this.height;
    }
}
